(function(t){"use strict";if(!t.matches&&t.matchesSelector){t.matches=t.matchesSelector}if(!t.matches){t.matches=function(t){var e=document.querySelectorAll(t);var c=this;return Array.prototype.some.call(e,function(t){return t===c})}}})(Element.prototype);